package org.example.xsda.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 学生信息DTO
 */
@Data
public class StudentDTO {

    private Long id;

    @NotBlank(message = "学号不能为空")
    private String studentNo;

    @NotBlank(message = "真实姓名不能为空")
    private String realName;

    @NotNull(message = "性别不能为空")
    private Integer gender;

    private LocalDate birthday;

    @NotNull(message = "院系不能为空")
    private Long deptId;

    @NotNull(message = "班级不能为空")
    private Long classId;

    private LocalDate enrollDate;

    private String address;

    private String phone;

    private String remark;
}

